#include<stdio.h>
int fun()
{
static int count = 0;
count++;
return count;
}
int main()
{
printf("%d ", fun()); // prints 1
printf("%d ", fun()); // prints 2
return 0;
}
int fun(int i);
int main()
{
int i, j;
for(i=0;i<=5;i++)
{
j = fun(i);
}
printf("%d", j);
}
fun(int i)
{
static int count = 0;
count = count + 1;
return count;
}